﻿<br />
<div class="code">
&#64;model&nbsp;CountriesModel<br />
<br />
&lt;p&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Your&nbsp;country:&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;select&nbsp;&#64;Html.KoAttrOptions(m&nbsp;=&gt;&nbsp;m.AvailableCountries2,&nbsp;textExpression:&nbsp;t&nbsp;=&gt;&nbsp;t.CountryName&nbsp;<br />+&nbsp;<span class="String">"&nbsp;(pop:&nbsp;"</span>&nbsp;+&nbsp;t.CountryPopulation&nbsp;+&nbsp;<span class="String">")"</span>,&nbsp;caption:&nbsp;<span class="String">"Choose..."</span>&nbsp;).KoAttrValue(m&nbsp;=&gt;&nbsp;m.SelectedCountry2)&gt;&lt;/select&gt;<br />
&lt;/p&gt;<br />
&nbsp;<br />
&lt;div&nbsp;&#64;Html.KoAttrVisible(m&nbsp;=&gt;&nbsp;m.SelectedCountry2)&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;You&nbsp;have&nbsp;chosen&nbsp;a&nbsp;country&nbsp;with&nbsp;population&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;span&nbsp;&#64;Html.KoAttrText(m&nbsp;=&gt;&nbsp;m.SelectedCountry2)&gt;&lt;/span&gt;.<br />
&lt;/div&gt;<br />
<br />
&#64;Model.ApplyBindingsScript(KoBindingOptions.IncludeData)
</div>
